home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Giga Pack
/
Giga Pack CD1.iso
/
strategy
/
wspmv2
/
install.bat
< prev
next >
Wrap
DOS Batch File
|
1993-12-02
|
3KB
|
82 lines
echo off
cls
if %1a == a: goto WHATDRIVE
if %1b == b: goto WHATDRIVE
if %1 == c: goto START
if %1 == C: goto START
if %1 == d: goto START
if %1 == D: goto START
if %1 == e: goto START
if %1 == E: goto START
if %1 == f: goto START
if %1 == F: goto START
goto NOTDRIVE
:START
echo * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
echo * *
echo * Word Search Puzzle Maker Hard Disk Installation *
echo * *
echo * This will create a directory called %1\WSPM on your hard disk, *
echo * and will install Word Search Puzzle Maker and its files in that *
echo * directory. *
echo * *
echo * If you don't want Word Search Puzzle Maker installed at this time, *
echo * press Ctrl + C. *
echo * *
echo * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
echo
pause
cls
echo Making directory %1\WSPM . . .
if exist %1\WSPM\*.* goto EXISTS
md %1\WSPM
:CHECK
if exist WSPM.EXE goto CONTINUE
echo
echo Place the disk containing Word Search Puzzle Maker and its files in
echo active drive.
echo
pause
goto CHECK
:CONTINUE
echo
echo Copying Word Search Puzzle Maker and its files . . .
copy *.* %1\WSPM
if not exist %1\WSPM\WSPM.EXE goto INSTALLERROR
if not exist %1\WSPM\DIRECTRI.TXT goto INSTALLERROR
cd %1\WSPM
echo
echo Word Search Puzzle Maker is installed on your hard disk. To run it,
echo type WSPM.
%1
echo
goto DONE
:WHATDRIVE
cls
echo Installation Error: To install Word Search Puzzle Maker on your hard
echo disk, you must include the drive as part of the install command. For
echo example, to install Word Search Puzzle Maker on drive C, type INSTALL C:
echo and press ENTER.
goto ERRORQUIT
:NOTDRIVE
cls
echo Installation Error: The hard drive letter can be a letter from C to F,
echo For example, INSTALL C: will install Word Search Puzzle Maker on drive
echo C. You must include a colon after the drive letter.
goto ERRORQUIT
:INSTALLERROR
cls
echo Installation Error: Do you have enough space on your hard disk?
echo Did you give the proper hard drive letter?
goto ERRORQUIT
:EXISTS
cls
echo Installation Error: WSPM Directory already exists on this drive.
echo Delete this directory and all files in it, then try installing again.
goto ERRORQUIT
:ERRORQUIT
echo
echo Word Search Puzzle Maker was not installed correctly.
echo
:DONE